<?php

include '../Controller/GenerateSubmitedSquadController.php';

?>
<div class="ismPitchAndBench" style='height:500px;'>
	<div class="ismPitch">
		<div class="ismPitchRow">
			<div class="ismUnit ismSize1of5 ismPitchCell"></div>
			<div class="ismUnit ismSize1of5 ismPitchCell"></div>
			<div class="ismUnit ismSize1of5 ismPitchCell" id="goalkeeper">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="goalkeeper">
						<div class="ismShirtContainer">
							<img src="<?php echo $goalkeeperImageSRC; ?>" width="48"
								height="63" alt="<?php echo $goalkeeperTeamName; ?>"
								title="<?php echo $goalkeeperTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $goalkeeperName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $goalkeeperValue; ?>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="ismUnit ismSize1of5 ismPitchCell"></div>
			<div class="ismUnit ismSize1of5 ismLastUnit ismPitchCell"></div>
		</div>
		<div class="ismLine ismPitchRow ismPitchRow2">
			<div class="ismUnit ismSize1of5 ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="defender0">
						<div class="ismShirtContainer">
							<img src="<?php echo $rightbackImageSRC; ?>" width="48"
								height="63" alt="<?php echo $rightbackTeamName; ?>"
								title="<?php echo $rightbackTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $rightbackName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $rightbackValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="ismUnit ismSize1of5 ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="defender1">
						<div class="ismShirtContainer">
							<img src="<?php echo $rightcenterImageSRC; ?>" width="48"
								height="63" alt="<?php echo $rightcenterTeamName; ?>"
								title="<?php echo $rightcenterTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $rightcenterName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $rightcenterValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="ismUnit ismSize1of5 ismPitchCell"></div>
			<div class="ismUnit ismSize1of5 ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="defender2">
						<div class="ismShirtContainer">
							<img src="<?php echo $leftcenterImageSRC; ?>" width="48"
								height="63" alt="<?php echo $leftcenterTeamName; ?>"
								title="<?php echo $leftcenterTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $leftcenterName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $leftcenterValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="ismUnit ismSize1of5 ismLastUnit ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="defender3">
						<div class="ismShirtContainer">
							<img src="<?php echo $leftbackImageSRC; ?>" width="48"
								height="63" alt="<?php echo $leftbackTeamName; ?>"
								title="<?php echo $leftbackTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $leftbackName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $leftbackValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="ismLine ismPitchRow ismPitchRow3">
			<div class="ismUnit ismSize1of5 ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="midfielder0">
						<div class="ismShirtContainer">
							<img src="<?php echo $rightwingImageSRC; ?>" width="48"
								height="63" alt="<?php echo $rightwingTeamName; ?>"
								title="<?php echo $rightwingTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $rightwingName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $rightwingValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="ismUnit ismSize1of5 ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="midfielder1">
						<div class="ismShirtContainer">
							<img src="<?php echo $rightcenterhalfImageSRC; ?>" width="48"
								height="63" alt="<?php echo $rightcenterhalfTeamName; ?>"
								title="<?php echo $rightcenterhalfTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $rightcenterhalfName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $rightcenterhalfValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="ismUnit ismSize1of5 ismPitchCell"></div>
			<div class="ismUnit ismSize1of5 ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="midfielder2">
						<div class="ismShirtContainer">
							<img src="<?php echo $leftcenterhalfImageSRC; ?>" width="48"
								height="63" alt="<?php echo $leftcenterhalfTeamName; ?>"
								title="<?php echo $leftcenterhalfTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $leftcenterhalfName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $leftcenterhalfValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="ismUnit ismSize1of5 ismLastUnit ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="midfielder3">
						<div class="ismShirtContainer">
							<img src="<?php echo $leftwingImageSRC; ?>" width="48"
								height="63" alt="<?php echo $leftwingTeamName; ?>"
								title="<?php echo $leftwingTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $leftwingName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $leftwingValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="ismLine ismPitchRow ismPitchRow4">
			<div class="ismUnit ismSize1of5 ismPitchCell"></div>
			<div class="ismUnit ismSize1of5 ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="striker0">
						<div class="ismShirtContainer">
							<img src="<?php echo $rightstrikerImageSRC; ?>" width="48"
								height="63" alt="<?php echo $rightstrikerTeamName; ?>"
								title="<?php echo $rightstrikerTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $rightstrikerName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $rightstrikerValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="ismUnit ismSize1of5 ismPitchCell"></div>
			<div class="ismUnit ismSize1of5 ismPitchCell">
				<div class="ismPitchElement">
					<div class="ismPlayerContainer" id="striker1">
						<div class="ismShirtContainer">
							<img src="<?php echo $leftstrikerImageSRC; ?>" width="48"
								height="63" alt="<?php echo $leftstrikerTeamName; ?>"
								title="<?php echo $leftstrikerTeamName; ?>"
								class="ismJsShirt ismShirt ismShirtPitch ismShirtZero" />
						</div>
						<div class="ismElementControls">
							<dl class='ismElementDetail' style='display: block;'>
								<dt>
									<span class='ismElementText ismPitchWebName'><?php echo $leftstrikerName; ?>
									</span>
								</dt>
								<dd>
									<span class='ismElementText ismPitchStat'>$<?php echo $leftstrikerValue; ?></a>
									</span>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
			<div class="ismUnit ismSize1of5 ismLastUnit ismPitchCell"></div>
		</div>
</div>
<?php

include '../Controller/GenerateManagerTeamController.php';

?>

<div >
	<div id='logManDiv'>
		<p id='LogManInfo'>Hello, <span id='logManName'><?php echo $_SESSION['manager']->getManName(); ?></span> !
		<p id='LogManInfo'>Team Name: <span id='logManName'><?php echo $_SESSION['manager']->getTeamName(); ?> </span></p>
		<p id='LogManInfo'>Total Manager Points: <span id='logManName'><?php echo $_SESSION['manager']->getLogManScore(); ?></span></p><br/>
	</div>


		<table id="loggedManagerTeamTable">
			<tr>
				<th>Pos</th>
				<th id="logManPlayersName">Players</th>
				<th>Team</th>
				<th><abbr title="Previous week playes score">PWS</th>
				<th><abbr title="Total score">Total</abbr>
				</th>
			</tr> 
			<tr>
				<td>GOA</td>
				<td id="logManPlayersName"><?php echo $goalkeeperFullName; ?></td>
				<td><?php echo $goalkeeperShortTeamName; ?></td>
				<td><?php echo $goalkeeperWeekPoints; ?></td>
				<td><?php echo $goalkeeperTotalScore; ?></td>
			</tr>
			<tr>
				<td>DEF</td>
				<td id="logManPlayersName"><?php echo $rightbackFullName; ?></td>
				<td><?php echo $rightbackShortTeamName; ?></td>
				<td><?php echo $rightbackWeekPoints; ?></td>
				<td><?php echo $rightbackTotalScore; ?></td>
			</tr>
			<tr>
				<td>DEF</td>
				<td id="logManPlayersName"><?php echo $rightcenterFullName; ?></td>
				<td><?php echo $rightcenterShortTeamName; ?></td>
				<td><?php echo $rightcenterWeekPoints; ?></td>
				<td><?php echo $rightcenterTotalScore; ?></td>
			</tr>
			<tr>
				<td>DEF</td>
				<td id="logManPlayersName"><?php echo $leftcenterFullName; ?></td>
				<td><?php echo $leftcenterShortTeamName; ?></td>
				<td><?php echo $leftcenterWeekPoints; ?></td>
				<td><?php echo $leftcenterTotalScore; ?></td>
			</tr>
			<tr>
				<td>DEF</td>
				<td id="logManPlayersName"><?php echo $leftbackFullName; ?></td>
				<td><?php echo $leftbackShortTeamName; ?></td>
				<td><?php echo $leftbackWeekPoints; ?></td>
				<td><?php echo $leftbackTotalScore; ?></td>
			</tr>
			<tr>
				<td>MID</td>
				<td id="logManPlayersName"><?php echo $rightwingFullName; ?></td>
				<td><?php echo $rightwingShortTeamName; ?></td>
				<td><?php echo $rightwingWeekPoints; ?></td>
				<td><?php echo $rightwingTotalScore; ?></td>
			</tr>
			<tr>
				<td>MID</td>
				<td id="logManPlayersName"><?php echo $rightcenterhalfFullName; ?></td>
				<td><?php echo $rightcenterhalfShortTeamName; ?></td>
				<td><?php echo $rightcenterhalfWeekPoints; ?></td>
				<td><?php echo $rightcenterhalfTotalScore; ?></td>
			</tr>
			<tr>
				<td>MID</td>
				<td  id="logManPlayersName"><?php echo $leftcenterhalfFullName; ?></td>
				<td><?php echo $leftcenterhalfShortTeamName; ?></td>
				<td><?php echo $leftcenterhalfWeekPoints; ?></td>
				<td><?php echo $leftcenterhalfTotalScore; ?></td>
			</tr>
			<tr>
				<td>MID</td>
				<td id="logManPlayersName"><?php echo $leftwingFullName; ?></td>
				<td><?php echo $leftwingShortTeamName; ?></td>
				<td><?php echo $leftwingWeekPoints; ?></td>
				<td><?php echo $leftwingTotalScore; ?></td>
			</tr>
			<tr>
				<td>STR</td>
				<td id="logManPlayersName"><?php echo $rightstrikerFullName; ?></td>
				<td><?php echo $rightstrikerShortTeamName; ?></td>
				<td><?php echo $rightstrikerWeekPoints; ?></td>
				<td><?php echo $rightstrikerTotalScore; ?></td>
			</tr>
			<tr>
				<td>STR</td>
				<td id="logManPlayersName"><?php echo $leftstrikerFullName; ?></td>
				<td><?php echo $leftstrikerShortTeamName; ?></td>
				<td><?php echo $leftstrikerWeekPoints; ?></td>
				<td><?php echo $leftstrikerTotalScore; ?></td>
			</tr>
			<tr>
				<td colspan='3' id="logManTotal">Selected Players Total</td>
				<td id="logManTotal"><?php echo $totalWeekPoints; ?></td>
				<td id="logManTotal"><?php echo $totalManScore; ?></td>
		</table>
</div>